﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using Bangle.Model;

namespace Bangle.BLL
{
    //Sys_User
    public partial class T_ClassificationBLL
    {
        public List<T_Classification> GetModelListByTypeCode(string TypeCode)
        {
            List<T_Classification> p_list = this.GetModelList(string.Format(" ClassificationCode='{0}'", TypeCode));
            int iParentId = 0;
            if (p_list != null && p_list.Count > 0)
            {
                iParentId = p_list[0].ClassificationId;
            }

            //类型
            List<T_Classification> class_list = this.GetModelList(string.Format(" ParentId={0} ", iParentId));

            return class_list;
        }
    }
}